package com.ebring.shareEducation.controller;

import com.ebring.shareEducation.bean.PayOrder;
import com.ebring.shareEducation.service.ScoreOrderService;
import com.ebring.shareEducation.utils.RspMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ScoreOrderController {
   @Autowired
   private ScoreOrderService scoreOrderService;
    /**
     * 根据用户id 查询用户积分明细
     *
     * @return
     */
    @PostMapping("/ScoreOrder/selectScoreOrderByUserid")
    public RspMsg<PayOrder> selectScoreOrderByUserid(String userId){
        return  scoreOrderService.scorePaymentWater(userId);
    }

}
